<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>批阅试卷</title>
    <link type="text/css" rel="stylesheet" href="/layui/css/layui.css">
    <script src="/jquery/jquery-3.6.0.js"></script>
    <script src="/layui/layui.js"></script>
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div th:each="info,index:${list}">
            <fieldset class="layui-elem-field" >
                <legend></legend>
                <div class="layui-field-box" th:id="${index.count}">
                    <p th:text="${info.stem}"></p>---总分：<span th:text="${info.score}"></span>
                    <hr class="layui-border-cyan">
                    正确答案：<p th:text="${info.right}"></p>
                    <hr class="layui-border-cyan">
                    学生答案：<p th:text="${info.reply}"></p>
                    <hr class="layui-border-cyan">
                    <form class="layui-form layui-form-pane"  id="form" th:action="@{/modifyscore}"  method="post">
                        <input hidden type="text" name="questionid" th:value="${info.questionid}">
                        <input hidden type="text" name="studentid" th:value="${info.studentid}">
                        <input hidden type="text" name="testid" th:value="${info.testid}">
                        <input type="text" name="score2" >
                        <button type="submit" class="layui-btn-primary" lay-submmit>确定</button>
                    </form>

                </div>
            </fieldset>
        </div>

    </div>
</div>
<script>
    layui.use(['form','layer'], function () {
        var form = layui.form
        form.render();


    });
</script>
</body>
</html>